package com.yc.bran.snack.bean;

public class Address {
	private Integer aid;
	private Integer uid;
	private String uname;
	private String utel;
	private String addre;
	private String detailed;
	private Integer defaults;
	
	@Override
	public String toString() {
		return "Address [aid=" + aid + ", uid=" + uid + ", uname=" + uname + ", utel=" + utel + ", addre=" + addre
				+ ", detailed=" + detailed + ", defaults=" + defaults + "]";
	}

	public Integer getAid() {
		return aid;
	}

	public void setAid(Integer aid) {
		this.aid = aid;
	}

	public Integer getUid() {
		return uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	public String getUname() {
		return uname;
	}

	public void setUname(String uname) {
		this.uname = uname;
	}

	public String getUtel() {
		return utel;
	}

	public void setUtel(String utel) {
		this.utel = utel;
	}

	public String getAddre() {
		return addre;
	}

	public void setAddre(String addre) {
		this.addre = addre;
	}

	public String getDetailed() {
		return detailed;
	}

	public void setDetailed(String detailed) {
		this.detailed = detailed;
	}

	public Integer getDefaults() {
		return defaults;
	}

	public void setDefaults(Integer defaults) {
		this.defaults = defaults;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((addre == null) ? 0 : addre.hashCode());
		result = prime * result + ((aid == null) ? 0 : aid.hashCode());
		result = prime * result + ((defaults == null) ? 0 : defaults.hashCode());
		result = prime * result + ((detailed == null) ? 0 : detailed.hashCode());
		result = prime * result + ((uid == null) ? 0 : uid.hashCode());
		result = prime * result + ((uname == null) ? 0 : uname.hashCode());
		result = prime * result + ((utel == null) ? 0 : utel.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Address other = (Address) obj;
		if (addre == null) {
			if (other.addre != null)
				return false;
		} else if (!addre.equals(other.addre))
			return false;
		if (aid == null) {
			if (other.aid != null)
				return false;
		} else if (!aid.equals(other.aid))
			return false;
		if (defaults == null) {
			if (other.defaults != null)
				return false;
		} else if (!defaults.equals(other.defaults))
			return false;
		if (detailed == null) {
			if (other.detailed != null)
				return false;
		} else if (!detailed.equals(other.detailed))
			return false;
		if (uid == null) {
			if (other.uid != null)
				return false;
		} else if (!uid.equals(other.uid))
			return false;
		if (uname == null) {
			if (other.uname != null)
				return false;
		} else if (!uname.equals(other.uname))
			return false;
		if (utel == null) {
			if (other.utel != null)
				return false;
		} else if (!utel.equals(other.utel))
			return false;
		return true;
	}
	
	
	
}
